wayland: Restore size when configure size is 0x0
authorOlivier Fourdan <ofourdan@redhat.com>
Fri, 26 Feb 2016 12:35:35 +0000 (13:35 +0100)
committerOlivier Fourdan <ofourdan@redhat.com>
Tue, 1 Mar 2016 12:15:02 +0000 (13:15 +0100)
commit3607b9aa2e4b2c57489947efa5dcf47877d68e69
tree2893d9f8d79e2f5b3a11dd0a247d357e6eaf4793
parent9f080299660d05b5c6f6657bc92ba8f683fec6f8
wayland: Restore size when configure size is 0x0

According to xdg_shell, an xdg_surface.configure with size 0x0 should
be interpreted as that it is up to the client to set a size.

When transitioning from maximize or fullscreen state, this means the
client should configure its size back to what it was before being
maximize or fullscreen.

This problem currently only occurs on weston because weston sends a
configure with size 0x0 when transitioning back from maximize or
fullscreen.

bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=762713
gdk/wayland/gdkwindow-wayland.c